#ifndef INT32_FROM_HEX
#define INT32_FROM_HEX

#include <iostream>

namespace conversion {

	class int32_from_hex   // For use with boost::lexical_cast
	{
	public:
		operator int() const { return static_cast<int>( value ); }
		friend std::istream& operator>>( std::istream& in, int32_from_hex& outValue )
		{
			in >> std::hex >> outValue.value;
			return in;
		}
	private:
		int value;
	};

}
#endif